package org.hawk.gwtppc.webtest.tests.methodsuite;

import org.hawk.gwtppc.webtest.common.Asserts;
import org.hawk.gwtppc.webtest.common.Test;
import org.hawk.gwtppc.webtest.tests.mock.SubClassMock1;
import org.hawk.gwtppc.webtest.tests.mock.SubClassMock2;

public class GetNameTest implements Test {

	public void run() throws Throwable {
		Asserts.assertEquals(SubClassMock1.class.getDeclaredMethod("getValue").getName(), "getValue");
		Asserts.assertEquals(SubClassMock1.class.getMethod("append", CharSequence.class).getName(), "append");
		Asserts.assertEquals(SubClassMock2.class.getDeclaredMethod("processValue", int.class).getName(), "processValue");
	}

	public String getName() {
		return "getName()";
	}

}
